package com.sczmgk.track.utils;

import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;

/**
 * 自定义Toast
 * @author Administrator
 *
 */
public class MyToast {
    
	public static boolean isDebug = false;
	public static void showDebug(Context context, String msg){
		if(isDebug){
			Toast toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);
//			toast.setGravity(Gravity.CENTER, 0, 0);
			toast.show();
		}
	}
	public static void show(Context context, String msg){
		
		Toast toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);
		toast.setGravity(Gravity.CENTER, 0, 0);
		toast.show();
	}
}
